package cn.ithers.blog.service;

import cn.ithers.blog.response.ResponseResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author: zhanghuan
 * @date: 2020/10/2 9:39
 * @description:
 */
public interface IImageService {
    ResponseResult uploadImage(MultipartFile file);

    void viewImage(HttpServletResponse response, String imageUrl) throws IOException;

    ResponseResult imageList(int page, int pageSize);

    ResponseResult deleteImageById(String imageId);

    void createQrCode(String code, HttpServletResponse response, HttpServletRequest request);
}
